package com.talkweb.newproject.common.utils;

import org.apache.commons.codec.digest.DigestUtils;

/**加密工具类
 * Created by qsf on 2019/4/10.
 */
public class EncryptUtil {

    /**
     * 加密密码
     * @param password
     * @return
     */
    public static String encryptPsw(String password) {
        String encryptPwd = DigestUtils.md5Hex(password);
        encryptPwd=DigestUtils.sha256Hex(encryptPwd+password);
        encryptPwd=DigestUtils.md5Hex(encryptPwd);
        return  encryptPwd;
    }
}
